//
//  JSMeTableHeaderView.m
//  NiubilityProject
//
//  Created by Apple on 2017/11/23.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import "JSMeTableHeaderView.h"

@interface JSMeTableHeaderView ()

/** heder*/
@property (nonatomic, strong) YYAnimatedImageView *header;
/** name*/
@property (nonatomic, strong) YYLabel *nameL;
/** msg*/
@property (nonatomic, strong) YYLabel *msgL;
/** 关注数量*/
@property (nonatomic, strong) YYLabel *attentionNumberL;
/** 粉丝数量*/
@property (nonatomic, strong) YYLabel *fansNumberL;




@end

@implementation JSMeTableHeaderView


- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        JS_WeakSelf(self)
        _header = [YYAnimatedImageView new];
        [self addSubview:_header];
        [_header mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.and.left.equalTo(self);
            make.width.mas_equalTo(kRealValue(50));
            make.height.equalTo(weakself.header).multipliedBy(1);
        }];
        YYAnimatedImageView *idc = [YYAnimatedImageView new];
        idc.image = [UIImage qmui_imageWithShape:QMUIImageShapeDisclosureIndicator size:CGSizeMake(10, 6) tintColor:[UIColor grayColor]];
        [idc sizeToFit];
        [self addSubview:idc];
        [idc mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(weakself.header);
            make.right.equalTo(weakself.mas_left).offset(10);
        }];
        
        _nameL = [YYLabel new];
        JSSetingLableInfo(_nameL, 14, JS_colorWithHex(kColorBlack3));
        [self addSubview:_nameL];
        [_nameL mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(weakself.header).offset(-10);
            make.left.equalTo(self.mas_right).offset(kRealValue(10));
        }];
        
    }
    return self;
}

- (void)updataUserInfo{
    
}

@end
